<?php
/**
 * 整型效果
 * Author: 毛康燕
 * Date: 2021/6/17
 */

namespace app\api\controller\v1;

use app\common\model\Casus as CasusModel;

class Result extends BaseController
{
    public function result()
    {
        $model = new CasusModel();
        $res = $model
            ->where('type', 1)
            ->field('id,image,name,desc')
            ->select()
            ->toArray();
        $res = addWebSiteUrl($res, ['image']);
        return sucessMsg(200, '获取成功！', ['res' => $res]);
    }
}